package org.cmcc.pcap.voltePcapParse.pcap;

public class VirtualLanEntity {
	
	//例如：Priority:Excellent Effort(2)
	private byte pri;
	
	//例如：DEI:Ineligible
	private byte dei;
	
	//例如：ID:1667
	private short id;
	
	//网络类型,例如：Type:IPv4(0x0800)
	private String type;

	public byte getPri() {
		return pri;
	}

	public void setPri(byte pri) {
		this.pri = pri;
	}

	public byte getDei() {
		return dei;
	}

	public void setDei(byte dei) {
		this.dei = dei;
	}

	public short getId() {
		return id;
	}

	public void setId(short id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return "<b>802.1Q Virtual LAN,PRI:</b>" + pri + ",<b> DEI:</b>" + dei + ", <b>ID:</b>" + id
				+ "</br>&nbsp;&nbsp;<b>Priority:</b>" + pri 
				+ "</br>&nbsp;&nbsp;<b>DEI:</b>" + dei
				+ "</br>&nbsp;&nbsp;<b>ID:</b>" + id
				+ "</br>&nbsp;&nbsp;<b>Type:</b>" + FrameType.getName(type) + "(" + type + ")";
	}

}
